//
//  LZFHeaderVIew.m
//  LZFBuDieJie
//
//  Created by 梁梓烽 on 16/7/19.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

#import "LZFHeaderVIew.h"


@interface LZFHeaderVIew ()
@property(nonatomic,weak)UILabel *label;
@end
@implementation LZFHeaderVIew


-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self=[super initWithReuseIdentifier:reuseIdentifier]) {
        
        self.contentView.backgroundColor = XMGCommonBgColor;
        
        // label
        UILabel *label = [[UILabel alloc] init];
        label.xmg_x = LZFSmallMargin;
        label.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
        label.textColor = XMGGrayColor(120);
        label.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:label];
        self.label = label;
    }
    return  self;
}


-(void)setText:(NSString *)text
{
    if (text!=nil) {
        self.label.text=text;
    }
}


@end
